﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Web.UI.WebControls;

namespace huyService
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {
        private DataSet1 dataSet11;

        [WebMethod]
        public DataSet GetUserAccount()
        {
            DataSet1 ds1 = new DataSet1();
            DataSet1TableAdapters.userTableAdapter userAdapter = new huyService.DataSet1TableAdapters.userTableAdapter();
            userAdapter.Fill(ds1.user);
            return ds1;            
        }

        private void InitializeComponent()
        {
            this.dataSet11 = new huyService.DataSet1();
            ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
            // 
            // dataSet11
            // 
            this.dataSet11.DataSetName = "DataSet1";
            this.dataSet11.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();

        }
    }
}
